package com.clusterswisdom.horn.api.ioc.api;

public enum ResponseType {
	
	STATUS("status"),
	
	DATA("data"),
	
	PUSH("push");
	
	String value;
	
	ResponseType(String value) {
		this.value = value;
	}

	public String getValue() {
		return value;
	}
	
	public static ResponseType findByName(String name) {
		for (ResponseType item : values()) {
			if (item.getValue().equals(name)) {
				return item;
			}
		}
		
		return STATUS;
	}
}
